package jaeger

import "context"

type Jaeger struct {
	ctx context.Context
	url string
}

func OpenJaeger(ctx context.Context, url string) *Jaeger {
	return &Jaeger{
		ctx: ctx,
		url: url,
	}
}

func (r *Jaeger) GetTracesId(id string, data interface{}) error {
	return jaegerTraceId(r.url, id, data)
}

func (r *Jaeger) GetTracesK8s(guid string, start int64, end int64, limit int64, data interface{}) error {
	return jaegerTracesK8s(r.url, guid, limit, start, end, data)
}

func (r *Jaeger) GetTracesGluenets(guid string, containers []string, start int64, end int64, limit int64, data interface{}) error {
	return jaegerTracesGluenets(r.url, guid, containers, limit, start, end, data)
}
